package com.szholly.data.coderule;

/// <summary>
/// 定义填充类型
/// </summary>
public enum FillType {

	// / <summary>
	// / 左填充
	// / </summary>
	PadLeft(0),
	// / <summary>
	// / 右填充
	// / </summary>
	PadRight(1);

	private final int fillType;

	public int getFillType() {
		return fillType;
	}

	private FillType(int fillType) {
		this.fillType = fillType;
	}

	public static FillType getFillTypeById(int fillTypeId) {
		for (FillType fillType : values()) {
			if (fillType.getFillType() == fillTypeId) {
				return fillType;
			}
		}
		return null;
	}
}
